package com.qfedu.dao;


import com.qfedu.entity.Customerinfo;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface CustomerDao extends JpaRepository<Customerinfo,String> {

    Customerinfo findByCustomerCode(String customerCode);

    Customerinfo save(Customerinfo customerinfo);

    List<Customerinfo> findAll();

    Integer deleteByCustomerCode(String customerCode);
}
